package team.first.moiveapiv1.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import team.first.moiveapiv1.domain.Comment;
import team.first.moiveapiv1.vo.ResponseComment;

import java.util.List;

/**
 * @Author: HAPPY 
 * @Project_name: project
 * @Package_name: team.first.moiveapiv1.mapper
 * @Date: 2021/11/25 11:01
 * @Description：
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    List<ResponseComment> selectAllCommentsByMovieId(@Param("movieId") Integer movieId,
                                                    @Param("pageSize")Integer pageSize,
                                                    @Param("offset")Integer offset);
}